GBML manual / Paths

path_point_y

The y position of point i on a path (0 if i is out of range).

Syntax

path_point_y(p, i) -> real

Arguments

NameType
ppath
iint

Returns

real

Description

The y position of point i on a path (0 if i is out of range) - the vertical counterpart to path_point_x.

It is a place in the room, counted from the room's top-left corner (and counting down), like an instance's own y.

Example

var first_y = path_point_y(path_doc_patrol, 0);

Reads the y position of path_doc_patrol's own first drawn control point.

See also: path_point_xpath_point_count